package com.wsd.smartcarwasher.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("活动")
public class Activity {
    @ApiModelProperty("活动id")
    private Integer id;
    @ApiModelProperty("活动标题")
    private String title;
    @ApiModelProperty("状态 0 正常 1 禁用")
    private Integer status;
    @ApiModelProperty(" 副文本内容")
    private String content;
    @ApiModelProperty(" 活动创建时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date cTime;
    @ApiModelProperty("活动开始时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date sTime;
    @ApiModelProperty(" 活动结束时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date eTime;
    @ApiModelProperty(" 活动关联的优惠卷ids 多个逗号分割")
    private String couponIds;
    @ApiModelProperty(" 活动关联的会员卡ids 多个逗号分割")
    private String cardId;
    @ApiModelProperty("分类：1为礼包，2为优惠券，3为会员卡")
    private  int  type;
    @ApiModelProperty("领取成功的图片")
    private  String successImg;
    @ApiModelProperty("领取失败的图片")
    private  String  failImg;
    @ApiModelProperty("广告首页封面")
    private  String cover;
    @ApiModelProperty("引导图封面")
    private  String guideImg;
    private List<Coupon> coupons;
    private List<Card> cards;

    public String getGuideImg() {
        return guideImg;
    }

    public void setGuideImg(String guideImg) {
        this.guideImg = guideImg;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", status=" + status +
                ", content='" + content + '\'' +
                ", cTime=" + cTime +
                ", sTime=" + sTime +
                ", eTime=" + eTime +
                ", couponId='" + couponIds + '\'' +
                ", cardId='" + cardId + '\'' +
                ", type=" + type +
                ", successImg='" + successImg + '\'' +
                ", failImg='" + failImg + '\'' +
                ", cover='" + cover + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getcTime() {
        return cTime;
    }

    public void setcTime(Date cTime) {
        this.cTime = cTime;
    }

    public Date getsTime() {
        return sTime;
    }

    public void setsTime(Date sTime) {
        this.sTime = sTime;
    }

    public Date geteTime() {
        return eTime;
    }

    public void seteTime(Date eTime) {
        this.eTime = eTime;
    }

    public String getCouponIds() {
        return couponIds;
    }

    public void setCouponIds(String couponIds) {
        this.couponIds = couponIds;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSuccessImg() {
        return successImg;
    }

    public void setSuccessImg(String successImg) {
        this.successImg = successImg;
    }

    public String getFailImg() {
        return failImg;
    }

    public void setFailImg(String failImg) {
        this.failImg = failImg;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public List<Coupon> getCoupons() {
        return coupons;
    }

    public void setCoupons(List<Coupon> coupons) {
        this.coupons = coupons;
    }

    public List<Card> getCards() {
        return cards;
    }

    public void setCards(List<Card> cards) {
        this.cards = cards;
    }
}
